package com.wzt.gift.enums;

/**
 * @Author Zenith
 * @Date 2022/10/11 19:51
 * @Version 1.0
 */
public enum ResponseEnum {
    CODE_NORMAL(200, ""),
    CODE_SYSTEM_ERROR(500, "系统繁忙，请稍后再试！"),
    CODE_TENANT_EXISTED(400001, "该租户已经存在！"),
    CODE_USER_EXISTED(400002, "该管理员已经存在！"),
    CODE_PHONE_REGISTERED(400003, "该手机号已经被注册！"),
    CODE_USER_NOT_EXIST(400004, "用户名或密码不正确！");

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * 响应状态码
     */
    private int code;
    /**
     * 响应消息
     */
    private String message;

    /**
     * 枚举构造函数
     * @param code
     * @param message
     */
    ResponseEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
